#include "cjsonerror.h"

CJsonError::CJsonError(CJsonErrorCode error)
{
    this->error = error;
}

const char * CJsonError::GetMessage()
{
    switch (error)
    {
        case INVALID_PARAM:
            return "INVALID PARAMETER";
        break;
        case JE_PARSE_FAILED:
          return "Parse failed";
        break;
        default:
            return "Unknown Internal ERROR";
    }
}
